const express = require('express')
const app = express()
const cors = require('cors')

app.use(cors())

app.get('/article', (req, res) => {
    res.send('文章查询')
})
app.post('/article', (req, res) => {
    res.send('文章新增')
})
app.delete('/article', (req, res) => {
    res.send('文章删除')
})
app.put('/article', (req, res) => {
    res.send('文章编辑')
})
app.listen(8000, () => { console.log('8000开启成功'); })